import { connect } from 'react-redux'
import React, { Component } from 'react'
import {withRouter, RouteComponentProps} from 'react-router-dom'

interface Props {
  match: any
  location: any
  history: any

  [key: string]: any
}

type State = {}

export class TestWithRoute extends Component<Props, State> {
  state = {}

  render() {
    console.log(this.props)
    return (
      <div>TestWithRoute</div>
    )
  }
}

const mapStateToProps = (state: any) => ({})

const mapDispatchToProps = {}

export default connect(mapStateToProps, mapDispatchToProps)(withRouter(TestWithRoute))